package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by ghost on 2018/3/12.
 */
@Entity
@Table(name = "wpp_teg_statistic2", schema = "sor", catalog = "qmsprd")
@IdClass(WppTegStatistic2PK.class)
public class WppTegStatistic2 {
    private String prodId;
    private String lotId;
    private String glassId;
    private String jgeCnt;
    private String slotId;
    private String sId;
    private String owner;
    private String opeId;
    private String eqptId;
    private String recipeId;
    private Timestamp procStart;
    private Timestamp procEnd;
    private String et;
    private String xCoord;
    private String yCoord;
    private String ivC;
    private int seqId;
    private BigDecimal vg;
    private BigDecimal id1;
    private String fileUrl;
    private Timestamp dbTimestamp;
    private Timestamp etlTimestamp;
    private String realFlg;
    private String series;

    @Id
    @Column(name = "prod_id")
    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId;
    }

    @Basic
    @Column(name = "lot_id")
    public String getLotId() {
        return lotId;
    }

    public void setLotId(String lotId) {
        this.lotId = lotId;
    }

    @Id
    @Column(name = "glass_id")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Id
    @Column(name = "jge_cnt")
    public String getJgeCnt() {
        return jgeCnt;
    }

    public void setJgeCnt(String jgeCnt) {
        this.jgeCnt = jgeCnt;
    }

    @Basic
    @Column(name = "slot_id")
    public String getSlotId() {
        return slotId;
    }

    public void setSlotId(String slotId) {
        this.slotId = slotId;
    }

    @Basic
    @Column(name = "s_id")
    public String getsId() {
        return sId;
    }

    public void setsId(String sId) {
        this.sId = sId;
    }

    @Basic
    @Column(name = "owner")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Basic
    @Column(name = "ope_id")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "eqpt_id")
    public String getEqptId() {
        return eqptId;
    }

    public void setEqptId(String eqptId) {
        this.eqptId = eqptId;
    }

    @Basic
    @Column(name = "recipe_id")
    public String getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(String recipeId) {
        this.recipeId = recipeId;
    }

    @Basic
    @Column(name = "proc_start")
    public Timestamp getProcStart() {
        return procStart;
    }

    public void setProcStart(Timestamp procStart) {
        this.procStart = procStart;
    }

    @Id
    @Column(name = "proc_end")
    public Timestamp getProcEnd() {
        return procEnd;
    }

    public void setProcEnd(Timestamp procEnd) {
        this.procEnd = procEnd;
    }

    @Id
    @Column(name = "et")
    public String getEt() {
        return et;
    }

    public void setEt(String et) {
        this.et = et;
    }

    @Basic
    @Column(name = "x_coord")
    public String getxCoord() {
        return xCoord;
    }

    public void setxCoord(String xCoord) {
        this.xCoord = xCoord;
    }

    @Basic
    @Column(name = "y_coord")
    public String getyCoord() {
        return yCoord;
    }

    public void setyCoord(String yCoord) {
        this.yCoord = yCoord;
    }

    @Basic
    @Column(name = "iv_c")
    public String getIvC() {
        return ivC;
    }

    public void setIvC(String ivC) {
        this.ivC = ivC;
    }

    @Id
    @Column(name = "seq_id")
    public int getSeqId() {
        return seqId;
    }

    public void setSeqId(int seqId) {
        this.seqId = seqId;
    }

    @Basic
    @Column(name = "vg")
    public BigDecimal getVg() {
        return vg;
    }

    public void setVg(BigDecimal vg) {
        this.vg = vg;
    }

    @Basic
    @Column(name = "id1")
    public BigDecimal getId1() {
        return id1;
    }

    public void setId1(BigDecimal id1) {
        this.id1 = id1;
    }

    @Basic
    @Column(name = "file_url")
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Basic
    @Column(name = "db_timestamp")
    public Timestamp getDbTimestamp() {
        return dbTimestamp;
    }

    public void setDbTimestamp(Timestamp dbTimestamp) {
        this.dbTimestamp = dbTimestamp;
    }

    @Basic
    @Column(name = "etl_timestamp")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Basic
    @Column(name = "real_flg")
    public String getRealFlg() {
        return realFlg;
    }

    public void setRealFlg(String realFlg) {
        this.realFlg = realFlg;
    }

    @Basic
    @Column(name = "series")
    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WppTegStatistic2 that = (WppTegStatistic2) o;

        if (seqId != that.seqId) return false;
        if (prodId != null ? !prodId.equals(that.prodId) : that.prodId != null) return false;
        if (lotId != null ? !lotId.equals(that.lotId) : that.lotId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (jgeCnt != null ? !jgeCnt.equals(that.jgeCnt) : that.jgeCnt != null) return false;
        if (slotId != null ? !slotId.equals(that.slotId) : that.slotId != null) return false;
        if (sId != null ? !sId.equals(that.sId) : that.sId != null) return false;
        if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false;
        if (opeId != null ? !opeId.equals(that.opeId) : that.opeId != null) return false;
        if (eqptId != null ? !eqptId.equals(that.eqptId) : that.eqptId != null) return false;
        if (recipeId != null ? !recipeId.equals(that.recipeId) : that.recipeId != null) return false;
        if (procStart != null ? !procStart.equals(that.procStart) : that.procStart != null) return false;
        if (procEnd != null ? !procEnd.equals(that.procEnd) : that.procEnd != null) return false;
        if (et != null ? !et.equals(that.et) : that.et != null) return false;
        if (xCoord != null ? !xCoord.equals(that.xCoord) : that.xCoord != null) return false;
        if (yCoord != null ? !yCoord.equals(that.yCoord) : that.yCoord != null) return false;
        if (ivC != null ? !ivC.equals(that.ivC) : that.ivC != null) return false;
        if (vg != null ? !vg.equals(that.vg) : that.vg != null) return false;
        if (id1 != null ? !id1.equals(that.id1) : that.id1 != null) return false;
        if (fileUrl != null ? !fileUrl.equals(that.fileUrl) : that.fileUrl != null) return false;
        if (dbTimestamp != null ? !dbTimestamp.equals(that.dbTimestamp) : that.dbTimestamp != null) return false;
        if (etlTimestamp != null ? !etlTimestamp.equals(that.etlTimestamp) : that.etlTimestamp != null) return false;
        if (realFlg != null ? !realFlg.equals(that.realFlg) : that.realFlg != null) return false;
        if (series != null ? !series.equals(that.series) : that.series != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = prodId != null ? prodId.hashCode() : 0;
        result = 31 * result + (lotId != null ? lotId.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (jgeCnt != null ? jgeCnt.hashCode() : 0);
        result = 31 * result + (slotId != null ? slotId.hashCode() : 0);
        result = 31 * result + (sId != null ? sId.hashCode() : 0);
        result = 31 * result + (owner != null ? owner.hashCode() : 0);
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (eqptId != null ? eqptId.hashCode() : 0);
        result = 31 * result + (recipeId != null ? recipeId.hashCode() : 0);
        result = 31 * result + (procStart != null ? procStart.hashCode() : 0);
        result = 31 * result + (procEnd != null ? procEnd.hashCode() : 0);
        result = 31 * result + (et != null ? et.hashCode() : 0);
        result = 31 * result + (xCoord != null ? xCoord.hashCode() : 0);
        result = 31 * result + (yCoord != null ? yCoord.hashCode() : 0);
        result = 31 * result + (ivC != null ? ivC.hashCode() : 0);
        result = 31 * result + seqId;
        result = 31 * result + (vg != null ? vg.hashCode() : 0);
        result = 31 * result + (id1 != null ? id1.hashCode() : 0);
        result = 31 * result + (fileUrl != null ? fileUrl.hashCode() : 0);
        result = 31 * result + (dbTimestamp != null ? dbTimestamp.hashCode() : 0);
        result = 31 * result + (etlTimestamp != null ? etlTimestamp.hashCode() : 0);
        result = 31 * result + (realFlg != null ? realFlg.hashCode() : 0);
        result = 31 * result + (series != null ? series.hashCode() : 0);
        return result;
    }
}
